#include <stdio.h>
#include <soc/soc_t21/jzm_i264_enc.h>
#ifdef DMALLOC
#include <imp/dmalloc.h>
#endif
void dump_t21_sliceinfo(_H264E_SliceInfo *sliceinfo)
{
  int i = 0,j = 0;
  /*basic*/
  {
    printf("frame_type    = %d\n", sliceinfo->frame_type);
    printf("mb_width      = %d\n", sliceinfo->mb_width);
    printf("mb_height     = %d\n", sliceinfo->mb_height);
    printf("frame_width   = %d\n", sliceinfo->frame_width);
    printf("frame_height  = %d\n", sliceinfo->frame_height);
    printf("first_mby     = %d\n", sliceinfo->first_mby);
    printf("last_mby      = %d\n", sliceinfo->last_mby);
    printf("qp            = %d\n", sliceinfo->qp);
    printf("base_qp       = %d\n", sliceinfo->base_qp);
    printf("max_qp        = %d\n", sliceinfo->max_qp);
    printf("min_qp        = %d\n", sliceinfo->min_qp);
  }

  /* 2. motion cfg */
  {
    if (sliceinfo->frm_re!=NULL)
      {
	for (i = 0; i < 4; i++) {
	  printf("frm_re[%d] = 0x%x\n", i, sliceinfo->frm_re[i]);
	}
      }
    printf("pskip_en       =%d\n",sliceinfo->pskip_en);
    printf("mref_en        =%d\n",sliceinfo->mref_en);
    printf("scl            =%d\n",sliceinfo->scl);
    printf("hpel_en        =%d\n",sliceinfo->hpel_en);
    printf("qpel_en        =%d\n",sliceinfo->qpel_en);
    printf("ref_mode       =%d\n",sliceinfo->ref_mode);
    printf("max_sech_step_i=%d\n",sliceinfo->max_sech_step_i);
    printf("max_mvrx_i     =%d\n",sliceinfo->max_mvrx_i);
    printf("max_mvry_i     =%d\n",sliceinfo->max_mvry_i);
    printf("lambda_scale_parameter =%d\n",sliceinfo->lambda_scale_parameter);
    printf("fs_en          =%d\n",sliceinfo->fs_en);
    printf("fs_md          =%d\n",sliceinfo->fs_md);
    printf("fs_px          =0x%x\n",sliceinfo->fs_px);
    printf("fs_py          =0x%x\n",sliceinfo->fs_py);
    printf("fs_rx          =0x%x\n",sliceinfo->fs_rx);
    printf("fs_ry          =0x%x\n",sliceinfo->fs_ry);
    printf("frm_mv_en      =%d\n",sliceinfo->frm_mv_en);
    printf("frm_mv_size    =%d\n",sliceinfo->frm_mv_size);
    printf("glb_mv_en      =%d\n",sliceinfo->glb_mv_en);
    printf("glb_mvx        =%d\n",sliceinfo->glb_mvx);
    printf("glb_mvy        =%d\n",sliceinfo->glb_mvy);
    printf("me_step_en     =%d\n",sliceinfo->me_step_en);
    printf("me_step_0      =%d\n",sliceinfo->me_step_0);
    printf("me_step_1      =%d\n",sliceinfo->me_step_1);
  }
  /* 3. quant cfg */
  {
    printf("dct8x8_en      =%d\n",sliceinfo->dct8x8_en);
    if (sliceinfo->scaling_list!=NULL)
      {
	for (i = 0;  i < 4; i++) {
	  for (j = 0; j < 16; j++) {
	    printf("scaling_list[%d][%d] = 0x%x\n", i, j, sliceinfo->scaling_list[i][j]);
	  }
	}
      }
    if (sliceinfo->scaling_list8!=NULL)
      {
	for (i = 0;  i < 2; i++) {
	  for (j = 0; j < 64; j++) {
	    printf("scaling_list8[%d][%d] = 0x%x\n", i, j, sliceinfo->scaling_list8[i][j]);
	  }
	}
      }
    if (sliceinfo->deadzone!=NULL)
      {
	for (i = 0; i < 9; i++) {
	  printf("deadzone[%d] = 0x%x\n", i, sliceinfo->deadzone[i]);
	}
      }
  }

  /* 4. loop filter cfg*/
  {
    printf("deblock         = %d\n", sliceinfo->deblock);
    printf("rotate          = %d\n", sliceinfo->rotate);
    printf("alpha_c0_offset = %d\n", sliceinfo->alpha_c0_offset);
    printf("beta_offset     = %d\n", sliceinfo->beta_offset);
  }

  /* 5. do not douch, default value */
  {

    printf("acmask_mode       =%d\n",sliceinfo->acmask_mode);
    printf("intra_mode_msk    =%d\n",sliceinfo->intra_mode_msk);
    printf("i_4x4_dis         =%d\n",sliceinfo->i_4x4_dis);
    printf("i_8x8_dis         =%d\n",sliceinfo->i_8x8_dis);
    printf("i_16x16_dis       =%d\n",sliceinfo->i_16x16_dis);
    printf("p_l0_dis          =%d\n",sliceinfo->p_l0_dis);
    printf("p_t8_dis          =%d\n",sliceinfo->p_t8_dis);
    printf("p_skip_dis        =%d\n",sliceinfo->p_skip_dis);
    printf("p_skip_pl0f_dis   =%d\n",sliceinfo->p_skip_pl0f_dis);
    printf("p_skip_pt8f_dis   =%d\n",sliceinfo->p_skip_pt8f_dis);

    printf("cost_bias_en      =%d\n",sliceinfo->cost_bias_en);
    printf("cost_bias_i_4x4   =%d\n",sliceinfo->cost_bias_i_4x4);
    printf("cost_bias_i_8x8   =%d\n",sliceinfo->cost_bias_i_8x8);
    printf("cost_bias_i_16x16 =%d\n",sliceinfo->cost_bias_i_16x16);
    printf("cost_bias_p_l0    =%d\n",sliceinfo->cost_bias_p_l0);
    printf("cost_bias_p_t8    =%d\n",sliceinfo->cost_bias_p_t8);
    printf("cost_bias_p_skip  =%d\n",sliceinfo->cost_bias_p_skip);

    printf("intra_lambda_y_bias_en =%d\n",sliceinfo->intra_lambda_y_bias_en);
    printf("intra_lambda_c_bias_en =%d\n",sliceinfo->intra_lambda_c_bias_en);
    printf("intra_lambda_bias_qp0  =%d\n",sliceinfo->intra_lambda_bias_qp0);
    printf("intra_lambda_bias_qp1  =%d\n",sliceinfo->intra_lambda_bias_qp1);
    printf("intra_lambda_bias_0    =%d\n",sliceinfo->intra_lambda_bias_0);
    printf("intra_lambda_bias_1    =%d\n",sliceinfo->intra_lambda_bias_1);
    printf("intra_lambda_bias_2    =%d\n",sliceinfo->intra_lambda_bias_2);

    printf("chroma_sse_bias_en     =%d\n",sliceinfo->chroma_sse_bias_en);
    printf("chroma_sse_bias_qp0    =%d\n",sliceinfo->chroma_sse_bias_qp0);
    printf("chroma_sse_bias_qp1    =%d\n",sliceinfo->chroma_sse_bias_qp1);
    printf("chroma_sse_bias_0      =%d\n",sliceinfo->chroma_sse_bias_0);
    printf("chroma_sse_bias_1      =%d\n",sliceinfo->chroma_sse_bias_1);
    printf("chroma_sse_bias_2      =%d\n",sliceinfo->chroma_sse_bias_2);

    printf("sse_lambda_bias_en     =%d\n",sliceinfo->sse_lambda_bias_en);
    printf("sse_lambda_bias        =%d\n",sliceinfo->sse_lambda_bias);
    printf("fbc_ep                 =%d\n",sliceinfo->fbc_ep);
    printf("jm_lambda2_en          =%d\n",sliceinfo->jm_lambda2_en);
    printf("inter_nei_en           =%d\n",sliceinfo->inter_nei_en);
    printf("skip_bias_en           =%d\n",sliceinfo->skip_bias_en);
    printf("ysse_thr               =%d\n",sliceinfo->ysse_thr);
    printf("csse_thr               =%d\n",sliceinfo->csse_thr);
    printf("dcm_en                 =%d\n",sliceinfo->dcm_en);
    printf("dcm_param              =%d\n",sliceinfo->dcm_param);
    printf("sde_prior              =%d\n",sliceinfo->sde_prior);
    printf("db_prior               =%d\n",sliceinfo->db_prior);
    printf("use_intra_in_pframe    =%d\n",sliceinfo->use_intra_in_pframe);
    printf("use_fast_mvp           =%d\n",sliceinfo->use_fast_mvp);
    printf("skip_en                =%d\n",sliceinfo->skip_en);
    printf("cqp_offset             =%d\n",sliceinfo->cqp_offset);
    printf("daisy_chain_en         =%d\n",sliceinfo->daisy_chain_en);
    printf("curr_thread_id         =%d\n",sliceinfo->curr_thread_id);
    printf("qp_tab_mode            =%d\n",sliceinfo->qp_tab_mode);
    printf("bs_size_en             =%d\n",sliceinfo->bs_size_en);
    printf("bs_size                =%d\n",sliceinfo->bs_size);
    printf("raw_format             =%d\n",sliceinfo->raw_format);
    printf("size_mode              =%d\n",sliceinfo->size_mode);
    printf("step_mode              =%d\n",sliceinfo->step_mode);
    printf("mode_ctrl              =%d\n",sliceinfo->mode_ctrl);
    if (sliceinfo->mode_ctrl_param!=NULL)
      {
	for(i=0;i<40;i++)
	  {
	    printf("mode_ctrl_param[%d]  =%d,\n",i,sliceinfo->mode_ctrl_param[i]);
	  }
      }
  }
  /* 6. select hardware output mode */
  {
    printf("info_en          =%d\n",sliceinfo->info_en);
    printf("mvd_sum_all      =%d\n",sliceinfo->mvd_sum_all);
    printf("mvd_sum_abs      =%d\n",sliceinfo->mvd_sum_abs);
    printf("mv_sum_all       =%d\n",sliceinfo->mv_sum_all);
    printf("mv_sum_abs       =%d\n",sliceinfo->mv_sum_abs);

    printf("cfg_size_x       =%d\n",sliceinfo->cfg_size_x);
    printf("cfg_size_y       =%d\n",sliceinfo->cfg_size_y);
    printf("cfg_iw_thr       =%d\n",sliceinfo->cfg_iw_thr);

    printf("cfg_mvr_thr1     =%d\n",sliceinfo->cfg_mvr_thr1);
    printf("cfg_mvr_thr2     =%d\n",sliceinfo->cfg_mvr_thr2);
    printf("cfg_mvr_thr3     =%d\n",sliceinfo->cfg_mvr_thr3);
  }

  /* 7. ipred bit&lambda ctrl */
  {
    printf("mb_mode_val      =%d\n",sliceinfo->mb_mode_val);
    printf("bit_16_en        =%d\n",sliceinfo->bit_16_en);
    printf("bit_8_en         =%d\n",sliceinfo->bit_8_en);
    printf("bit_4_en         =%d\n",sliceinfo->bit_4_en);
    printf("bit_uv_en        =%d\n",sliceinfo->bit_uv_en);
    printf("lamb_16_en       =%d\n",sliceinfo->lamb_16_en);
    printf("lamb_8_en        =%d\n",sliceinfo->lamb_8_en);
    printf("lamb_4_en        =%d\n",sliceinfo->lamb_4_en);
    printf("lamb_uv_en       =%d\n",sliceinfo->lamb_uv_en);
    printf("c_16_en          =%d\n",sliceinfo->c_16_en);
    printf("c_8_en           =%d\n",sliceinfo->c_8_en);
    printf("c_4_en           =%d\n",sliceinfo->c_4_en);
    printf("c_uv_en          =%d\n",sliceinfo->c_uv_en);
    printf("pri_16           =%d\n",sliceinfo->pri_16);
    printf("pri_8            =%d\n",sliceinfo->pri_8);
    printf("pri_4            =%d\n",sliceinfo->pri_4);
    printf("pri_uv           =%d\n",sliceinfo->pri_uv);
    printf("ref_neb_4        =%d\n",sliceinfo->ref_neb_4);
    printf("ref_neb_8        =%d\n",sliceinfo->ref_neb_8);
    printf("lambda_info16    =%d\n",sliceinfo->lambda_info16);
    printf("lambda_info8     =%d\n",sliceinfo->lambda_info8);
    printf("lambda_info4     =%d\n",sliceinfo->lambda_info4);
    printf("lambda_infouv    =%d\n",sliceinfo->lambda_infouv);
    printf("ref_4            =%d\n",sliceinfo->ref_4);
    printf("ref_8            =%d\n",sliceinfo->ref_8);

    if (sliceinfo->bit_16!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("bit_16[%d]=%d,\n",i,sliceinfo->bit_16[i]);
	  }
      }


    if (sliceinfo->bit_uv!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("bit_uv[%d]=%d,\n",i,sliceinfo->bit_uv[i]);
	  }
      }

    if (sliceinfo->bit_4!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("bit_4[%d]=%d,\n",i,sliceinfo->bit_4[i]);
	  }
      }

    if (sliceinfo->bit_8!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("bit_8[%d]=%d,\n",i,sliceinfo->bit_8[i]);
	  }
      }

    if (sliceinfo->const_16!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("const_16[%d]=%d,\n",i,sliceinfo->const_16[i]);
	  }
      }

    if (sliceinfo->const_uv!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("const_uv[%d]=%d,\n",i,sliceinfo->const_uv[i]);
	  }
      }


    if (sliceinfo->const_4!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("const_4[%d]=%d,\n",i,sliceinfo->const_4[i]);
	  }
      }

    if (sliceinfo->const_8!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf(">const_8[%d]=%d,\n",i,sliceinfo->const_8[i]);
	  }
      }
  }

  /* 8. qpg */
  {
    printf("qp_tab_en        =%d\n",sliceinfo->qp_tab_en);
    printf("qp_tab_len       =%d\n",sliceinfo->qp_tab_len);
    //printf("qp_tab           =%d\n",sliceinfo->qp_tab);

    for (i = 0; i < 8; i++) {
      printf("[%d].roi_en =%d\n", i,sliceinfo->roi_info[i].roi_en);
      printf("[%d].roi_md =%d\n", i,sliceinfo->roi_info[i].roi_md);
      printf("[%d].roi_qp =%d\n", i,sliceinfo->roi_info[i].roi_qp);
      printf("[%d].roi_lmbx =%d\n", i,sliceinfo->roi_info[i].roi_lmbx);
      printf("[%d].roi_rmbx =%d\n", i,sliceinfo->roi_info[i].roi_rmbx);
      printf("[%d].roi_umby =%d\n", i,sliceinfo->roi_info[i].roi_umby);
      printf("[%d].roi_bmby =%d\n", i,sliceinfo->roi_info[i].roi_bmby);
    }

    printf("crp_en           =%d\n",sliceinfo->crp_en);
    printf("sas_en           =%d\n",sliceinfo->sas_en);
    printf("sas_mthd         =%d\n",sliceinfo->sas_mthd);

    if (sliceinfo->qpg_mbqp_ofst!=NULL)
      {
	for(i=0;i<8;i++)
	  {
	    printf("qpg_mbqp_ofst[%d]=%d,\n",i,sliceinfo->qpg_mbqp_ofst[i]);
	  }
      }

    if (sliceinfo->qpg_mb_thd!=NULL)
      {
	for(i=0;i<7;i++)
	  {
	    printf("qpg_mb_thd[%d]=%d,\n",i,sliceinfo->qpg_mb_thd[i]);
	  }
      }

    if (sliceinfo->qpg_flt_thd!=NULL)
      {
	for(i=0;i<5;i++)
	  {
	    printf("qpg_flt_thd[%d]=%d,\n",i,sliceinfo->qpg_flt_thd[i]);
	  }
      }

    printf("rc_frm_tbs       =%d\n",sliceinfo->rc_frm_tbs);
    printf("rc_mb_en         =%d\n",sliceinfo->rc_mb_en);
    printf("mbrc_qpg_sel     =%d\n",sliceinfo->mbrc_qpg_sel);
    printf("rc_bcfg_mode     =%d\n",sliceinfo->rc_bcfg_mode);
    printf("rc_bu_wait_en    =%d\n",sliceinfo->rc_bu_wait_en);
    printf("rc_mb_wait_en    =%d\n",sliceinfo->rc_mb_wait_en);
    printf("rc_bu_level      =%d\n",sliceinfo->rc_bu_level);
    printf("rc_mb_level      =%d\n",sliceinfo->rc_mb_level);
    printf("avg_bu_bs        =%d\n",sliceinfo->avg_bu_bs);
    printf("rc_bu_num        =%d\n",sliceinfo->rc_bu_num);
    printf("mb_gp_num        =%d\n",sliceinfo->mb_gp_num);
    printf("rc_bu_size       =%d\n",sliceinfo->rc_bu_size);
    printf("last_bu_size     =%d\n",sliceinfo->last_bu_size);
    if (sliceinfo->tar_bs_thd!=NULL)
      {
	for(i=0;i<6;i++)
	  {
	    printf("tar_bs_thd[%d]=%d,\n",i,sliceinfo->tar_bs_thd[i]);
	  }
      }
    if (sliceinfo->mb_target_avg_bs!=NULL)
      {
	for(i=0;i<2;i++)
	  {
	    printf("mb_target_avg_bs[%d]=%d,\n",i,sliceinfo->mb_target_avg_bs[i]);
	  }
      }
    if (sliceinfo->bu_alg0_qpo!=NULL)
      {
	for(i=0;i<6;i++)
	  {
	    printf("bu_alg0_qpo[%d]=%d,\n",i,sliceinfo->bu_alg0_qpo[i]);
	  }
      }
    if (sliceinfo->bu_alg1_qpo!=NULL)
      {
	for(i=0;i<6;i++)
	  {
	    printf("bu_alg1_qpo[%d]=%d,\n",i,sliceinfo->bu_alg1_qpo[i]);
	  }
      }

    if (sliceinfo->mb_cs_qpo!=NULL)
      {
	for(i=0;i<7;i++)
	  {
	    printf("mb_cs_qpo[%d]=%d,\n",i,sliceinfo->mb_cs_qpo[i]);
	  }
      }

    if (sliceinfo->mb_top_bs_qpo!=NULL)
      {
	for(i=0;i<2;i++)
	  {
	    printf("mb_top_bs_qpo[%d]=%d,\n",i,sliceinfo->mb_top_bs_qpo[i]);
	  }
      }

    if (sliceinfo->mb_rinfo_qpo!=NULL)
      {
	for(i=0;i<2;i++)
	  {
	    printf("mb_rinfo_qpo[%d]=%d,\n",i,sliceinfo->mb_rinfo_qpo[i]);
	  }
      }
  }
  /* 9. jrfc,jrfd */
  {
    printf("jrfcd_flag       =%d\n",sliceinfo->jrfcd_flag);
    printf("jrfc_enable      =%d\n",sliceinfo->jrfc_enable);
    printf("jrfd_enable      =%d\n",sliceinfo->jrfd_enable);
    printf("lm_head_total    =%d\n",sliceinfo->lm_head_total);
    printf("cm_head_total    =%d\n",sliceinfo->cm_head_total);
  }

  /* 10. eigen cfg for mosaic, color error */
  {
    printf("mb_mode_use      =%d\n",sliceinfo->mb_mode_use);
    printf("force_i16dc      =%d\n",sliceinfo->force_i16dc);
    printf("force_i16        =%d\n",sliceinfo->force_i16);
    printf("refresh_en       =%d\n",sliceinfo->refresh_en);
    printf("refresh_mode     =%d\n",sliceinfo->refresh_mode);
    printf("refresh_bias     =%d\n",sliceinfo->refresh_bias);
    printf("refresh_cplx_thd =%d\n",sliceinfo->refresh_cplx_thd);
    printf("cplx_thd_sel     =%d\n",sliceinfo->cplx_thd_sel);
    printf("diff_cplx_sel    =%d\n",sliceinfo->diff_cplx_sel);
    printf("diff_thd_sel     =%d\n",sliceinfo->diff_thd_sel);
    printf("i16dc_cplx_thd   =%d\n",sliceinfo->i16dc_cplx_thd);
    printf("i16dc_qp_base    =%d\n",sliceinfo->i16dc_qp_base);
    printf("i16dc_qp_sel     =%d\n",sliceinfo->i16dc_qp_sel);
    printf("i16_qp_base      =%d\n",sliceinfo->i16_qp_base);
    printf("i16_qp_sel       =%d\n",sliceinfo->i16_qp_sel);
    printf("diff_cplx_thd    =%d\n",sliceinfo->diff_cplx_thd);
    if (sliceinfo->diff_qp_base!=NULL)
      {
	for(i=0;i<2;i++)
	  {
	    printf("diff_qp_base[%d]=%d,\n",i,sliceinfo->diff_qp_base[i]);
	  }
      }
    if (sliceinfo->diff_qp_sel!=NULL)
      {
	for(i=0;i<2;i++)
	  {
	    printf("diff_qp_sel[%d]=%d,\n",i,sliceinfo->diff_qp_sel[i]);
	  }
      }
    if (sliceinfo->cplx_thd_idx!=NULL)
      {
	for(i=0;i<24;i++)
	  {
	    printf("cplx_thd_idx[%d]=%d,\n",i,sliceinfo->cplx_thd_idx[i]);
	  }
      }
    if (sliceinfo->cplx_thd!=NULL)
      {
	for(i=0;i<8;i++)
	  {
	    printf("cplx_thd[%d]=%d,\n",i,sliceinfo->cplx_thd[i]);
	  }
      }

    if (sliceinfo->diff_thd_base!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    printf("diff_thd_base[%d]=%d,\n",i,sliceinfo->diff_thd_base[i]);
	  }
      }
    if (sliceinfo->diff_thd_ofst!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    printf("diff_thd_ofst[%d]=%d,\n",i,sliceinfo->diff_thd_ofst[i]);
	  }
      }
    printf("sas_eigen_en     =%d\n",sliceinfo->sas_eigen_en);
    printf("crp_eigen_en     =%d\n",sliceinfo->crp_eigen_en);
    printf("sas_eigen_dump   =%d\n",sliceinfo->sas_eigen_dump);
    printf("crp_eigen_dump   =%d\n",sliceinfo->crp_eigen_dump);
    printf("rrs_en           =%d\n",sliceinfo->rrs_en);
    printf("rrs_dump_en      =%d\n",sliceinfo->rrs_dump_en);
    printf("rrs_uv_en        =%d\n",sliceinfo->rrs_uv_en);
    printf("rrs_size_y       =%d\n",sliceinfo->rrs_size_y);
    printf("rrs_size_c       =%d\n",sliceinfo->rrs_size_c);

    printf("rrs_thrd_y       =%d\n",sliceinfo->rrs_thrd_y);
    printf("rrs_thrd_u       =%d\n",sliceinfo->rrs_thrd_u);
    printf("rrs_thrd_v       =%d\n",sliceinfo->rrs_thrd_v);
  }
  /* 11. skin judge cfg */
  {
    printf("skin_dt_en     =%d\n",sliceinfo->skin_dt_en);
    printf("skin_lvl       =%d\n",sliceinfo->skin_lvl);
    printf("skin_cnt_thd   =%d\n",sliceinfo->skin_cnt_thd);
    printf("ncu_mov_en     =%d\n",sliceinfo->ncu_mov_en);
    printf("ncu_move_len   =%d\n",sliceinfo->ncu_move_len);
    printf("ncu_move_info  =%p\n",sliceinfo->ncu_move_info);
    printf("buf_share_en   =%d\n",sliceinfo->buf_share_en);
    printf("buf_share_size =%d\n",sliceinfo->buf_share_size);
    printf("frame_idx      =%d\n",sliceinfo->frame_idx);

    if (sliceinfo->skin_pxlu_thd!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    for(j=0;j<2;j++)
	      {
		printf("skin_pxlu_thd[%d][%d]=%d,\n",i,j,sliceinfo->skin_pxlu_thd[i][j]);
	      }
	  }
      }
    if (sliceinfo->skin_pxlv_thd!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    for(j=0;j<2;j++)
	      {
		printf("skin_pxlv_thd[%d][%d]=%d,\n",i,j,sliceinfo->skin_pxlv_thd[i][j]);
	      }
	  }
      }
    if (sliceinfo->skin_qp_ofst!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("skin_qp_ofst[%d]=%d,\n",i,sliceinfo->skin_qp_ofst[i]);
	  }
      }
    if (sliceinfo->mult_factor!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    printf("mult_factor[%d]=%d,\n",i,sliceinfo->mult_factor[i]);
	  }
      }
    if (sliceinfo->shift_factor!=NULL)
      {
	for(i=0;i<3;i++)
	  {
	    for(j=0;j<3;j++)
	      {
		printf("shift_factor[%d][%d]=%d,\n",i,j,sliceinfo->shift_factor[i][j]);
	      }
	  }
      }
    if (sliceinfo->skin_ofst!=NULL)
      {
	for(i=0;i<4;i++)
	  {
	    printf("skin_ofst[%d]=%d,\n",i,sliceinfo->skin_ofst[i]);
	  }
      }
  }
}
